expander: fix sizes in resize_toplevel
authorTimm Bäder <mail@baedert.org>
Tue, 6 Mar 2018 16:36:04 +0000 (17:36 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 6 Mar 2018 17:12:49 +0000 (18:12 +0100)
commitf5e290517a5d1b1430b3489570d2e0a06a2746c1
tree8d2afc8d523e33ffb6cc5e3cd39248976856e03d
parent7dc4669d014607c6f8f7acc9ca91dd76a41e38ed
expander: fix sizes in resize_toplevel

We can't use gtk_widget_get_allocation for either non-anchored widgets
(which happens with the child widget when the expander is unexpanded)
nor toplevel windows since that will include the window decorations.

Fixes #70 in gtk4
gtk/gtkexpander.c